<?php

/**
* $Id: admin.php,v 1.19 2005/06/13 15:23:02 fx2024 Exp $
* Module: SmartSection
* Author: The SmartFactory <www.smartfactory.ca>
* Licence: GNU
*/

/*global $xoopsConfig, $xoopsModule, $xoopsModuleConfig;
If (isset($xoopsModuleConfig) && isset($xoopsModule) && $xoopsModule->getVar('dirname') == 'smartsection') {
	$itemType = $xoopsModuleConfig['itemtype'];
} else {
	$hModule = &xoops_gethandler('module');
	$hModConfig = &xoops_gethandler('config');
	if ($ss_Module = &$hModule->getByDirname('smartsection')) {
		$module_id = $ss_Module->getVar('mid');
		$ss_Config = &$hModConfig->getConfigsByCat(0, $ss_Module->getVar('mid'));
		$itemType = $ss_Config['itemtype'];
	} else {
		$itemType = 'article';
	}	
}

//include_once(XOOPS_ROOT_PATH . "/modules/smartsection/language/" . $xoopsConfig['language'] . "/plugin/" . $itemType . "/admin.php");
*/
define("_AM_SS_ABOUT", "About");
define("_AM_SS_ACTION", "Action");
define("_AM_SS_ADD_OPT","Add %s  more sub categories");
define("_AM_SS_ADD_OPT_SUBMIT","Add");
define("_AM_SS_ADMIN_CATS", "Select categories that each group can moderate");
define("_AM_SS_ADMINCOLMNGMT", "Categories management");
define("_AM_SS_ALL", "All");
define("_AM_SS_ALL_EXP", "<b>All status</b> : All articles of the module, whatever their status.");
define("_AM_SS_ALLITEMS", "All articles in the module");
define("_AM_SS_ALLITEMSMSG", "Select a status to see all available articles in the selected status.");
define("_AM_SS_ALLOWCOMMENTS", "Can article be commented?");
define("_AM_SS_APPROVE", "Approve");
define("_AM_SS_APPROVED", "Approved");
define("_AM_SS_APPROVED_MODERATE", "Moderate this submission");
define("_AM_SS_APPROVESUB", "Approve submission");
define("_AM_SS_APPROVING", "Approving");
define("_AM_SS_ASC", "Ascending");
define("_AM_SS_AVAILABLE", "<span style='font-weight: bold; color: green;'>Available</span>");
define("_AM_SS_BACK2IDX", "Cancelled. Taking you back to the index");
define("_AM_SS_BLOCKS", "Blocks management");
define("_AM_SS_BLOCKSANDGROUPS", "Blocks and groups");
define("_AM_SS_BLOCKSGROUPSADMIN", "Blocks and Groups Management");
define("_AM_SS_BLOCKSTXT", "This module has the following blocks, which you can configure here or in the system module.");
define("_AM_SS_BODY", "Body");
define("_AM_SS_BODY_DSC", "Main body of the article");
define("_AM_SS_BODY_REQ", "Body*");
define("_AM_SS_BY", "by");
define("_AM_SS_CANCEL", "Cancel");
define("_AM_SS_CAT_ITEMS", "Articles");
define("_AM_SS_CAT_ITEMS_DSC", "Articles within this category");
define("_AM_SS_CATCOLNAME","Title");
define("_AM_SS_CATCREATED", "New category was created and saved!");
define("_AM_SS_CATEGORIES", "Categories");
define("_AM_SS_CATEGORIES_DSC", "Here is a list of all created categories of the module.");
define("_AM_SS_CATEGORIES_TITLE", "Created categories");
define("_AM_SS_CATEGORY", "Category");
define("_AM_SS_CATEGORY_CREATE", "Create a category");
define("_AM_SS_CATEGORY_CREATE_INFO", "Fill the following form in order to create a new category. The newly created category will be automatically displayed in the user side.");
define("_AM_SS_CATEGORY_DSC", "Category to which belong this article.");
define("_AM_SS_CATEGORY_EDIT_INFO", "You can edit this category. Modifications will immediatly take effect in the user side.");
define("_MD_SS_CATEGORY_ITEM", "Categorie<span style='font-size: xx-small; font-weight: normal; display: block;'>Category to which belong category.</span>");
define("_AM_SS_CATEGORY_REQ", "Category*");
define("_AM_SS_CATEGORY_SAVE_ERROR", "An error occured while saving the category. Here is a list of error(s) :");
define("_AM_SS_CATHEADER", "Categories Management");
define("_AM_SS_CATID","ID");
define("_AM_SS_CLEAR", "Clear");
define("_AM_SS_COLDESCRIPT", "Category description");
define("_AM_SS_COLISDELETED", "Category %s has been deleted");
define("_AM_SS_COLMODIFIED", "The category was successfully modified.");
define("_AM_SS_COLPOSIT", "Category position");
define("_AM_SS_CREATE", "Create");
define("_AM_SS_CREATECATEGORY", "Create a new category");
define("_AM_SS_CREATED", "Created");
define("_AM_SS_CREATEITEM", "Create article");
define("_AM_SS_CREATESMARTITEM", "Create a new article");
define("_AM_SS_CREATETHEDIR", "Create the folder");
define("_AM_SS_CREATINGNEW", "Creating new");
define("_AM_SS_DATESUB", "Published date");
define("_AM_SS_DATESUB_DSC", "Select the date of publication");
define("_AM_SS_DELETE", "Delete");
define("_AM_SS_DELETE_CAT_CONFIRM", "Please note that by deleting a category, all the sub-categories and the articles of this category will be deleted as well, along with any comments that may have been posted related to ces articles. Are you sure you wish to delete this category ?");
define("_AM_SS_DELETE_CAT_ERROR", "An error occured while deleting this category.");
define("_AM_SS_DELETECOL", "Delete category");
define("_AM_SS_DELETEFILE","Delete file");
define("_AM_SS_DELETEITEM", "Delete article");
define("_AM_SS_DELETETHISFILE","Are you sure you want to delete this file?");
define("_AM_SS_DELETETHISITEM", "Delete this file?");
define("_AM_SS_DESC", "Descending");
define("_AM_SS_DESCRIP", "Category description");
define("_AM_SS_DESCRIPTION", "Description");
define("_AM_SS_DIRCREATED", "Folder successfully created ");
define("_AM_SS_DIRNOTCREATED", "The folder could not be created ");
define("_AM_SS_DISPLAY_SUMMARY", "Display summary on the item page ?");
define("_AM_SS_DOHTML", " Enable HTML tags");
define("_AM_SS_DOIMAGE", " Enable images");
define("_AM_SS_DOLINEBREAK", " Enable linebreak");
define("_AM_SS_DOSMILEY", " Enable smiley icons");
define("_AM_SS_DOXCODE", " Enable XOOPS codes");
define("_AM_SS_EDITCOL", "Edit category");
define("_AM_SS_EDITFILE","Edit file");
define("_AM_SS_EDITING", "Editing");
define("_AM_SS_EDITITEM", "Edit the article");
define("_AM_SS_ERROR", " An error has occurred.");
define("_AM_SS_ERROR_ITEM_NOT_SAVED", "An error occured. The article was not saved in the database.");
define("_AM_SS_FILE", "Files");
define("_AM_SS_FILE_ADD", "Adding a file");
define("_AM_SS_FILE_ADDING", "Adding a new file");
define("_AM_SS_FILE_ADDING_DSC", "Please fill the following form in order to add a new file to this article.");
define("_AM_SS_FILE_DELETE_ERROR","An error occured while deleting the file.");
define("_AM_SS_FILE_DESCRIPTION", "Description");
define("_AM_SS_FILE_DESCRIPTION_DSC", "Description of the file to be uploaded.");
define("_AM_SS_FILE_EDITING", "Editing a file");
define("_AM_SS_FILE_EDITING_DSC", "You can edit this file. Modifications will immediatly take effect in the user side.");
define("_AM_SS_FILE_EDITING_ERROR", "An error occured while updating the file.");
define("_AM_SS_FILE_EDITING_SUCCESS", "The file was successfully modified.");
define("_AM_SS_FILE_INFORMATIONS", "File's informations");
define("_AM_SS_FILE_NAME", "Name");
define("_AM_SS_FILE_NAME_DSC", "Name that will be used to identify the file.");
define("_AM_SS_FILE_TO_UPLOAD", "File to upload :");
define("_AM_SS_FILEISDELETED","The file has been succesfully deleted") ;
define("_AM_SS_FILENAME", "File name");
define("_AM_SS_FILES_LINKED", "Files linked to this article");
define("_AM_SS_FILEUPLOAD_ERROR", "An error occured while uploading the file.");
define("_AM_SS_FILEUPLOAD_SUCCESS", "The file was successfully uploaded.");
define("_AM_SS_GOMOD", "Go to module");
define("_AM_SS_GROUPS", "Groups management");
define("_AM_SS_GROUPSINFO", "Configure module and blocks permissions for each group");
define("_AM_SS_HELP", "Help");
define("_AM_SS_HITS", "Hits");
define("_AM_SS_ID", "Id");
define("_AM_SS_IMAGE", "Category image");
define("_AM_SS_IMAGE_DSC", "Image representing the category");
define("_AM_SS_IMAGE_ITEM", "Article image");
define("_AM_SS_IMAGE_ITEM_DSC", "Image representing the article");
define("_AM_SS_IMAGE_UPLOAD", "Image upload");
define("_AM_SS_IMAGE_UPLOAD_DSC", "Select an image on your computer. This image will be uploaded to the site and set as the category image.");
define("_AM_SS_IMAGE_UPLOAD_ITEM_DSC", "Select an image on your computer. This image will be uploaded to the site and set as the article image.");
define("_AM_SS_IMAGEPATH", "Category storing the category images : ");
define("_AM_SS_INDEX", "Index");
define("_AM_SS_INVENTORY", "Module Summary");
define("_AM_SS_ITEM", "Article");
define("_AM_SS_ITEM_CREATING", "Creating a new article");
define("_AM_SS_ITEM_CREATING_DSC", "Please fill the following form in order to create a new article.");
define("_AM_SS_ITEM_DELETE_ERROR", "An error occured while deleting this article.");
define("_AM_SS_ITEM_EDIT", "Edit this article");
define("_AM_SS_ITEM_INFORMATIONS", "Class action suit informations");
define("_AM_SS_ITEMCAT", "Category");
define("_AM_SS_ITEMCATEGORYNAME", "Category");
define("_AM_SS_ITEMCOLNAME", "Title");
define("_AM_SS_ITEMCREATEDOK", "The article was successfully created and published !");
define("_AM_SS_ITEMDESC", "Description");
define("_AM_SS_ITEMID", "ID");
define("_AM_SS_ITEMISDELETED", "The article has been deleted.");
define("_AM_SS_ITEMMODIFIED", "The article was successfully modified!");
define("_AM_SS_ITEMNOTCREATED", "Sorry. It was not possible to create this article!");
define("_AM_SS_ITEMNOTUPDATED", "Sorry. It was not possible to update the article!");
define("_AM_SS_ITEMS", "Articles");
define("_AM_SS_MODADMIN", "Module Admin :");
define("_AM_SS_MODIFY", "Modify");
define("_AM_SS_MODIFYCAT", "Modify category");
define("_AM_SS_MODIFYTHISCAT", "Modify this category?");
define("_AM_SS_NB_SUBCATS","Number of categories to add:<br><br>Enter number then press 'Add'");
define("_AM_SS_NEED_CATEGORY_ITEM", "To create an article, you must first create a category.");
define("_AM_SS_NO", "No");
define("_AM_SS_NOCAT", "No categories to display");
define("_AM_SS_NOCOLTOEDIT", "There are no categories to edit!");
define("_AM_SS_NOFILE", "This article does not have any attached files.");
define("_AM_SS_NOFILESELECTED", "No file selected.");
define("_AM_SS_NOFOUND", "No users match the required string.");
define("_AM_SS_NOITEMS", "There are presently no published article.");
define("_AM_SS_NOITEMSELECTED", "No article selected !");
define("_AM_SS_NOITEMSSEL", "Sorry. There are no articles in the selected state.");
define("_AM_SS_NONE", "None");
define("_AM_SS_NOPERMSSET", "Permission cannot be set : No categories created yet! Please create a category first.");
define("_AM_SS_NOSUBCAT","There is no sub categories created yet");
define("_AM_SS_NOTAVAILABLE", "<span style='font-weight: bold; color: red;'>Not available</span>");
define("_AM_SS_NOTUPDATED", "There was an error updating the database!");
define("_AM_SS_OFFLINE", "Offline");
define("_AM_SS_OFFLINE_CREATED_SUCCESS", "The article has been successfully created and put offline.");
define("_AM_SS_OFFLINE_EXP", "<b>Offline articles</b> : Published articles that have been put offline, temporarily or not. Offline articles are not displayed in the user side.");
define("_AM_SS_OFFLINE_FIELD", "Offline<span style='font-size: xx-small; font-weight: normal; display: block;'>Select 'No' to put this article back<br />on line.</span>");
define("_AM_SS_OFFLINE_MOD_SUCCESS", "The article has been successfully put offline.");
define("_AM_SS_OFFLINEEDITING", "Editing an offline article");
define("_AM_SS_OFFLINEEDITING_INFO", "You can edit this offline article. Modifications will be saved for this article. However, if you would like to display this article in the user side, you will need to set the status to <b>Published</b>.");
define("_AM_SS_OPTIONS", "Options");
define("_AM_SS_OPTS", "Preferences");
define("_AM_SS_PARENT_CATEGORY_EXP", "Parent category<span style='font-size: xx-small; font-weight: normal; display: block;'>Select the category to which will belong the present category.</span>");
define("_AM_SS_PATH", "Path");
define("_AM_SS_PATH_FILES", "Attached files");
define("_AM_SS_PATH_IMAGES", "General images");
define("_AM_SS_PATH_IMAGES_CATEGORY", "Category images");
define("_AM_SS_PATH_IMAGES_ITEM", "Articles images");
define("_AM_SS_PATH_ITEM", "Upload items");
define("_AM_SS_PATHCONFIGURATION", "Module Path Configuration");
define("_AM_SS_PERMISSIONS", "Permissions");
define("_AM_SS_PERMISSIONS_APPLY_ON_ITEMS", "Apply read permissions on articles<span style='font-size: xx-small; font-weight: normal; display: block;'>Apply the above Read Permissions on all<br />articles within that category, overriding their<br />current permissions</span>");
define("_AM_SS_PERMISSIONS_CAT_READ", "Read permissions<span style='font-size: xx-small; font-weight: normal; display: block;'>Groups that will have permissions to see<br />this Category, as well as any articles<br />inside that category.</span>");
define("_AM_SS_PERMISSIONS_ITEM", "Permissions");
define("_AM_SS_PERMISSIONS_ITEM_DSC", "Groups that will have permissions to see this item.");
define("_AM_SS_PERMISSIONSADMIN", "Permissions Management");
define("_AM_SS_PERMISSIONSADMINMAN", "Permissions to moderate categories");
define("_AM_SS_PERMISSIONSVIEWMAN", "Permissions to view categories");
define("_AM_SS_PUBLISH", "Publish");
define("_AM_SS_PUBLISHED", "Published");
define("_AM_SS_PUBLISHED_DSC", "Here is a list of all published articles available in the user side.");
define("_AM_SS_PUBLISHED_EXP", "<b>Published articles</b> : articles that have been approved and are displayed in the user side.");
define("_AM_SS_PUBLISHED_MOD_SUCCESS", "The article has been successfully modified.");
define("_AM_SS_PUBLISHEDEDITING", "Editing a published article");
define("_AM_SS_PUBLISHEDEDITING_INFO", "You can edit this article. Modifications will immediatly take effect in the user side.");
define("_AM_SS_PUBLISHEDITEMS", "Published articles");
define("_AM_SS_REJECTED", "Rejected");
define("_AM_SS_REJECTED_EDIT", "Edit this rejected article");
define("_AM_SS_REJECTED_ITEM", "Rejected article");
define("_AM_SS_REJECTED_ITEM_EXP", "<b>Rejected articles</b> : articles that have been submitted by user, but rejected by a moderator. Rejected articles are not displayed in the user side.");
define("_AM_SS_SCATEGORYNAME","Create subcategories<br><br><span style='font-size: xx-small; font-weight: normal; display: block;'>Fill the text box with the names of sub categories to create.<br>Leave blank to not create subcategory. To create more, enter the how much more to create then press 'Add'</span>");
define("_AM_SS_SELECT_SORT", "Sort order");
define("_AM_SS_SELECT_STATUS", "Status");
define('_AM_SS_SETMPERM','Set the permission');
define("_AM_SS_SHOWING", "Showing");
define("_AM_SS_STATUS", "Status");
define("_AM_SS_STATUS_DSC", "Select the status of this article");
define("_AM_SS_SUBCAT_CAT","Sub categories");
define("_AM_SS_SUBCAT_CAT_DSC","Here is the list of the sub categories of this category");
define("_AM_SS_SUBCATEGORY_SAVE_ERROR","An error occured while saving the category. Here is a list of error(s):");
define("_AM_SS_SUBDESCRIPT","Description");
define("_AM_SS_SUBMISSION_MODERATE", "Moderate this article");
define("_AM_SS_SUBMISSIONSMNGMT", "Submitted articles");
define("_AM_SS_SUBMITTED", "Submitted");
define("_AM_SS_SUBMITTED_APPROVE_SUCCESS", "The submitted article has been published in the user side.");
define("_AM_SS_SUBMITTED_EXP", "<b>Submitted articles</b> : Articles that have been submitted by users. Once approved, they will be displayed in the user side.");
define("_AM_SS_SUBMITTED_INFO", "This article has been submitted by a member. You can make some modifications if you'd like. Upon approval, this article will be displayed in the user side of this site.");
define("_AM_SS_SUBMITTED_TITLE", "Approving a submitted article");
define("_AM_SS_SUMMARY", "Introduction");
define("_AM_SS_SUMMARY_DSC", "Article's introduction");
define("_AM_SS_TITLE", "Title");
define("_AM_SS_TITLE_REQ", "Title*");
define("_AM_SS_TOTAL_OFFLINE", "Offline articles: ");
define("_AM_SS_TOTALCAT", "Categories :");
define("_AM_SS_TOTALPUBLISHED", "Published articles: ");
define("_AM_SS_TOTALSUBMITTED", "Submitted articles: ");
define("_AM_SS_UID", "Poster name");
define("_AM_SS_UID_DSC", "Select the name of the poster");
define("_AM_SS_UPLOAD", "Upload");
define("_AM_SS_UPLOAD_FILE", "Upload a file");
define("_AM_SS_UPLOAD_FILE_NEW", "Upload a new file");
define("_AM_SS_UPLOADED_DATE", "Uploaded");
define("_AM_SS_UPLOADPATH", "Category storing the uploaded files attaches to articles : ");
define("_AM_SS_VIEW_CATS", "Select categories that each group can view");
define("_AM_SS_WEIGHT", "Weight");
define("_AM_SS_YES", "Yes");

// Search users
define("_AM_SS_ACTIVEUSERS", "Active users: %s");
define("_AM_SS_FINDUSERS", "Find users");
define("_AM_SS_INACTIVEUSERS", "Inactive users: %s");
define("_AM_SS_LIMIT", "Users per page");
define("_AM_SS_REALNAME", "Real name");
define("_AM_SS_RESULTS", "Search results");
define("_AM_SS_SUBMIT", "Submit");
define("_AM_SS_UNAME", "User name");


//upgrade tables constants
define("_AM_SS_DB_CHECKTABLES", "Check tables");
define("_AM_SS_DB_CURRENTVER", 'Current version: <span class="currentVer">%s</span>');
define("_AM_SS_DB_DBVER", "Database Version %s");
define("_AM_SS_DB_MSG_ADD_DATA", "Data added in table %s");
define('_AM_SS_DB_MSG_ADD_DATA_ERR', 'Error adding data in table %s');
define('_AM_SS_DB_MSG_CHGFIELD', 'Changing field %s in table %s');
define('_AM_SS_DB_MSG_CHGFIELD_ERR', 'Error changing field %s in table %s');
define("_AM_SS_DB_MSG_CREATE_TABLE", "Table %s created");
define('_AM_SS_DB_MSG_CREATE_TABLE_ERR', 'Error creating table %s');
define("_AM_SS_DB_NEEDUPDATE", "Your database is out-of-date. Please upgrade your database tables!<br><b>Note : The SmartFactory strongly recommends you to backup all SmartSection tables before running this upgrade script.</b><br>");
define('_AM_SS_DB_NOUPDATE', 'Your database is up-to-date. No updates are necessary.');
define("_AM_SS_DB_UPDATE_DB", "Updating Database");
define('_AM_SS_DB_UPDATE_ERR', 'Errors updating to version %s');
define("_AM_SS_DB_UPDATE_NOW", "Update Now!");
define("_AM_SS_DB_UPDATE_OK", "Successfully updated to version %s");
define('_AM_SS_DB_UPDATE_TO', 'Updating to version %s');
define("_AM_SS_UPDATE_MODULE", "Update module");
?>